package 装饰者模式.制作咖啡;

/**
 * 需求：
 * 为不同的咖啡品牌配置不同的调料
 */
public class Business {

    public static void main(String[] args) {

        XbkCoffee xbkCoffee = new XbkCoffee();
        MilkDecorator xbkMilk1 = new MilkDecorator(xbkCoffee);
        MilkDecorator xbkMilk2 = new MilkDecorator(xbkMilk1);
        ChocolateDecorator xbkChocolate1 = new ChocolateDecorator(xbkMilk2);
        xbkChocolate1.operator();

        System.out.println("----------------------");

        QchCoffee qchCoffee = new QchCoffee();
        ChocolateDecorator qchChocolate1 = new ChocolateDecorator(qchCoffee);
        ChocolateDecorator qchChocolate2 = new ChocolateDecorator(qchChocolate1);
        MilkDecorator qchMilk1 = new MilkDecorator(qchChocolate2);
        qchMilk1.operator();
    }

}
